package com.tengju.data.infrastructure.schedule;

import com.tengju.user.application.user.UserSentimentRemindJobService;
import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.annotation.XxlJob;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author: Dylan
 * @date: 2021/8/25 5:06 下午
 */
@Component
@Slf4j
@RequiredArgsConstructor(onConstructor_ = {@Autowired})
public class UserSentimentRemindJob {

    private final UserSentimentRemindJobService userDocumentJobService;

    @XxlJob("userSentimentRemindJob")
    public ReturnT<String> execute(String param) {
        userDocumentJobService.execute();
        return ReturnT.SUCCESS;
    }
}
